<script setup>
import { RouterView } from 'vue-router'

import { defineComponent } from 'vue'
import { useI18n } from 'vue-i18n'
import { useRouter } from 'vue-router'
var screenWidth = window.screen.width
const router = useRouter()
console.log('router', window.location.href)

var windowWidth = window.outerWidth
let hrefUrl = window.location.href
if (windowWidth < 1200) {
  if (!hrefUrl.includes('moblie')) {
    // 路由守卫
    router.push({
      name: 'homeMoblie',
    })
  }
} else {
  if (hrefUrl.includes('moblie')) {
    // 路由守卫
    router.push({
      name: 'home',
    })
  }
}

const i18n = useI18n()
</script>

<template>
  <RouterView />
  <!-- <TabsView></TabsView> -->
</template>

<style lang="scss" scoped>
@import 'normalize.css';

#app {
  /** 字体抗锯齿，让字体看起来更清晰 */
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  color: #2c3e50;
  font-size: 14px;
}
* {
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.van-dialog__content {
  display: flex;
}
::-webkit-scrollbar {
  display: none;
}

/* 或者只隐藏滚动条的轨道、滑块和滚动条角落 */
/* 隐藏轨道 */
::-webkit-scrollbar-track {
  display: none;
}
/* 在线链接服务仅供平台体验和调试使用，平台不承诺服务的稳定性，企业客户需下载字体包自行发布使用并做好备份。 */
/* 在线链接服务仅供平台体验和调试使用，平台不承诺服务的稳定性，企业客户需下载字体包自行发布使用并做好备份。 */
@font-face {
  font-family: 'iconfont'; /* Project id 4559726 */
  src: url('//at.alicdn.com/t/c/font_4559726_yukfocywfhh.woff2?t=1716793587154') format('woff2'),
    url('//at.alicdn.com/t/c/font_4559726_yukfocywfhh.woff?t=1716793587154') format('woff'),
    url('//at.alicdn.com/t/c/font_4559726_yukfocywfhh.ttf?t=1716793587154') format('truetype');
}

.iconfont {
  font-family: 'iconfont' !important;
  font-size: 16px;
  font-style: normal;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.icon-bianxie:before {
  content: '\e60e';
}

.icon-fanhuitubiao1:before {
  content: '\e62d';
}

.icon-youxi:before {
  content: '\e69e';
}
</style>
